package com.cax.module.article.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import lombok.extern.slf4j.Slf4j;
import io.swagger.annotations.Api;
import com.cax.module.article.service.ArticleColumnService;
import org.springframework.validation.annotation.Validated;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import com.cax.module.article.domain.ArticleColumn;
import com.cax.module.article.domain.vo.ArticleColumnVO;
import com.cax.module.article.domain.dto.ArticleColumnDTO;
import com.cax.common.core.domain.Result;
import javax.validation.constraints.NotNull;
import java.util.List;
import javax.validation.constraints.NotEmpty;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;


@Slf4j
@RestController
@Api(tags = "文章栏目")
@RequestMapping("/articleColumn")
@Validated
public class ArticleColumnController {
    /**
     * 文章栏目表 Service
     */
    @Autowired
    public ArticleColumnService articleColumnService;

    @GetMapping("/getAll")
    @ApiOperation(value = "查询所有", notes = "")
	public Result<List<ArticleColumnVO>> getAll() {
		List<ArticleColumnVO> result = articleColumnService.getAll();
		return Result.ok(result);
	}




}

